<!DOCTYPE html>
<!--[if IE 8]>			<html class="ie ie8"> <![endif]-->
<!--[if IE 9]>			<html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->	<html> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<title>我的订单 {$site_name} </title>
	<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
	<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
	{include file="public:head_user" /}
</head>
<body class="body-white">
<div class="wrap">
	{include file="public:nav" /}
	<div id="main-cmf">
		<div class="breadcrumb-wrapper">
			<div class="container">
				<div class="row">
					<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
						<h2 class="title">{:lang('personal center')}</h2>
					</div>
					<div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
						<div class="breadcrumbs pull-right">
							<ul>
								<li>{:lang('current location')}:</li>
								<li><a href="__ROOT__/">{:lang('home')}</a></li>
								<li><a href="{:url('home/Center/index')}">{:lang('personal center')}</a></li>
								<li>{:lang('my orderlist')}</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="content">
			<div class="container">
				<div class="row">
					<div class="col-lg-3 col-md-3 col-sm-3 col-xs-12">
						{include file="public:usernav"/}
					</div>
					<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
						<div id="center-content" style="padding:20px">
							<div class="row">
								<table class="table table-bordered table-striped table-hover">
									<thead>
									<tr>
										<th>{:lang('ordersn')}</th>
										<th>商品</th>
										<th>数量</th>
                                        <th>价格</th>
                                        <th>时间</th>
                                        <th>状态</th>
                                        <th>操作</th>
									</tr>
									</thead>
									<tbody>
									{foreach name="orderlist" item="vo"}
										<tr>
											<td>{$vo.sn}</td>
											<td>{$vo.subject}</td>
											<td>{$vo.number}</td>
                                            <td>{$vo.total_fee}</td>
                                            <td>{:date('Y:m:d H:i:s',$vo["add_time"])}</td>
                                            <td>
                                            {if condition="$vo['state_pay'] lt 2"}
                                            	{if condition="$vo['state_pay'] eq 1"}
                                                	<a href="javascript:;" onClick="gopay({$vo.id});">{$paystatus[$vo.state_pay]}</a>
                                                {else/}
                                            		{$paystatus[$vo.state_pay]}
                                            	{/if}
                                            {else/}
                                            {$orderstatus[$vo.state_trade]}
                                            {/if}
                                            </td>
											<td>
                                            <a href="{:url('home/Center/vieworder',array('id'=>$vo['id']))}" target="_blank">{:lang('see')}</a> 
                                            </td>
										</tr>
									{/foreach}
                                    <tr>
                                        <td colspan="12" align="right">{$page}</td>
                                    </tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	{include file="public:footer"/}
</div>
<script>
    function gopay(id){
       var url = "{:url('home/payment/payorder',['id'=>'_ID_'])}";
	   url = url.replace('_ID_',id);
	   location.href = url;
	}
</script>
{include file="public:scripts"/}
</body>
</html>